//
//  JFBSubmitOrderDS.h
//  ios-supplier
//
//  Created by Benlai on 15/8/19.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JFBSubmitOrderDS : NSObject


//@property (nonatomic, strong) NSArray *receive_name;

//
//@property (nonatomic, assign) NSInteger buyCount;

////创建时间
//@property (copy, nonatomic) NSString *create_at;
////完成时间
//@property (copy, nonatomic) NSString *finish_at;
//
////发票
//@property (strong, nonatomic) NSString *invoice;
////支邮费
//@property (strong, nonatomic) NSString *pay_postage;
////价格
//@property (strong, nonatomic) NSDecimalNumber *pay_price;
//
//@property (strong, nonatomic) NSDecimalNumber *total_price;
//
////支付方式
//@property (assign, nonatomic) NSUInteger payment;
////地址
//@property (strong, nonatomic) NSString *receive_address;
//
//@property (strong, nonatomic) NSString *receive_Message;
//
//@property (strong, nonatomic) NSString  *receive_name;
//
////手机号
//@property (strong, nonatomic) NSString *receive_phone;
////地区
//@property (assign, nonatomic) NSUInteger region_id;
//
//@property (assign, nonatomic) NSUInteger shop_id;
//
////订单状态
//@property (assign, nonatomic) NSUInteger status;
//
////订购数量（件数）
//@property (assign, nonatomic) NSUInteger prod_count;
//

//
//@property (nonatomic, assign) NSInteger ID;
//
//@property (nonatomic, strong) NSString * so_number;

///采购单ID
@property (nonatomic,assign) NSInteger ID;
///采购单内部编码
@property (nonatomic,  copy) NSString *purchaseNoInside;
///采购单外部编码
@property (nonatomic,  copy) NSString *purchaseNoOutside;
///商家id
@property (nonatomic,assign) NSInteger merchantId;
///商家名称
@property (nonatomic,  copy) NSString *merchantName;
///仓库ID
@property (nonatomic,assign) NSInteger warehouseId;
///仓库名称
@property (nonatomic,  copy) NSString *warehouseName;
///供应商ID
@property (nonatomic,assign) NSInteger supplierId;
///供应商名称
@property (nonatomic,  copy) NSString *supplierName;
///供应商联系人
@property (nonatomic,  copy) NSString *supplierContactPerson;
///供应商联系人电话
@property (nonatomic,  copy) NSString *supplierContactPhone;
///送货方式编码
@property (nonatomic,assign) NSInteger deliveryType;
///送货方式
@property (nonatomic,  copy) NSString *deliveryTypeText;
///采购类型编码
@property (nonatomic,assign) NSInteger purchaseType;
///采购类型文字
@property (nonatomic,  copy) NSString *purchaseTypeText;
///备注
@property (nonatomic,  copy) NSString *note;
///采购单状态编码
@property (nonatomic,assign) NSInteger purchaseStatus;
///采购单状态文字
@property (nonatomic,  copy) NSString *purchaseStatusText;
///采购单金额
@property (nonatomic, copy) NSString *purchasePrice;
///采购单SKU
@property (nonatomic,assign) NSInteger purchaseSku;
///采购单Units
@property (nonatomic,assign) NSInteger purchaseUnits;
///采购来源文字
@property (nonatomic,  copy) NSString *purchaseSourceText;
///审核通过/拒绝日期
@property (nonatomic,  copy) NSString *auditDate;
///支付方式编码
@property (nonatomic,assign) NSInteger payType;
///支付方式文字
@property (nonatomic,  copy) NSString *payTypeText;
///下单人ID
@property (nonatomic,assign) NSInteger createUserid;
///下单人姓名
@property (nonatomic,  copy) NSString *createUsername;
///下单日期
@property (nonatomic,  copy) NSString *createTime;
///采购单条目总数
@property (nonatomic,assign) NSInteger purchaseEntriesTotal;

//单个商品
@property (strong, nonatomic) NSMutableArray *shopSOItem;





// common fields
@property (nonatomic, assign) unsigned int resultCode;

@property (nonatomic, strong) NSString *message;

- (instancetype)initWithAttributes:(NSDictionary *)attributes;

+ (NSURLSessionDataTask *)submitOrder:(void (^)(JFBSubmitOrderDS *orderDetailInfo, NSError *error))block shopInfo:(NSDictionary *)parameters;
+ (NSURLSessionDataTask *)loadMenuList:(void(^)(NSArray *menuList, NSError *error)) block andWithUT:(NSString *)ut andWithMerchantId:(NSInteger)merchantId andWithPurchaseStatus:(NSInteger)purchaseStatus andWithCurrentPage:(NSInteger)currentPage andWithItemsPerPage:(NSInteger)itemsPerPage andWithOrderItemNum:(NSInteger)orderItemNum;

@end
